#include "iostream"

using namespace std;

int summation(int array[], int nCount)
{
	int sum = 0;
	for (int i = 0; i < nCount; i++)
	{
		sum += array[i];
	}
	return sum;
}

void copy(char *pS, char *pT)
{
	int i = 0;
	for (i = 0; pS[i]; ++i)
	{
		pT[i] = pS[i];
	}
	pT[i] = '\0';

	cout << "source string is : " << pS << endl;
	cout << "Target string is : " << pT;
}

int main(int argc, char **Argv)
{
	int intArray[5] = { 5, 6, 7, 8, 9};
	int sum = summation(intArray, 5);

	cout << "the sumation is : " << sum << endl;

	char ps[15] = "hello, world!";
	char pt[15];
	copy(ps, pt);

	return 0;
}